package com.gxa.zhonglong.mapper;

import com.gxa.zhonglong.pojo.Supplier;

import java.util.List;

/**
 * @author NITRO
 */
public interface SupplierMapper {
    /**
     * 查询
     * @param supplier_name
     * @param page
     * @param size
     * @return
     */
    List<Supplier> selectSupplierList (Integer page,Integer size,String supplier_name);

    /**
     * 添加
     * @param supplier
     * @return
     */
    Boolean addSupplier(Supplier supplier);

    /**
     * 删除
     * @return
     */
    int deleteSupplier(List<Long> ids);

    /**
     * 修改
     * @param supplier
     * @return
     */
    Boolean updateSupplier(Supplier supplier);

    /**
     * 根据id查询用户
     * @param id
     * @return
     */
    Supplier selectById(Long id);

    List<Supplier> selectAll();


}
